package com.woniu.outlet.po;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.Email;
import javax.validation.constraints.NotNull;

@Data
@ApiModel("用户对象参数")
public class WorkerPo {

    @ApiModelProperty(value = "用户id为数字类型")
    private Long id;


    @ApiModelProperty(value = "部门编号为数字类型")
    @NotNull(message = "部门id不能为空")
    private Long deptId;

    @ApiModelProperty(value = "用户名字")
    private String username;

    @ApiModelProperty(value="用户账号")
    private String account;

    @Length(message = "长度为3位数",min=3,max=3)
    @ApiModelProperty(value="用户密码")
    private String password;

    @ApiModelProperty(value = "性别")
    private String gender;


    @ApiModelProperty("工序编号为数字类型")
    @NotNull(message = "工序id不能为空")
    private Long workingProcedureId;

    @ApiModelProperty(value = "学历")
    private String education;


    @ApiModelProperty(value = "职务")
    @NotNull(message = "职务id不能为空")
    private Long job;

    @ApiModelProperty(value = "联系电话")
    private Long telephone;

    @Email(message = "必须是一个邮箱")
    @ApiModelProperty(value="邮箱")
    private String email;

    @ApiModelProperty(value="备用字段1")
    private String spare1;

    @ApiModelProperty(value="备用字段2")
    private String spare2;

    @ApiModelProperty(value="备用字段3")
    private String spare3;

}